<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title></title>
<meta name="author" content="S" />
<meta name="author" content="S" />

<link rel="stylesheet" type="text/css" href="<?php echo theme_url('css/common.css');?>" />

<!-- jquery ui 插件 -->
<link rel="stylesheet" type="text/css" href="<?php echo theme_url('js/jquery/skin/jquery.ui.all.css');?>" />
<script type="text/javascript" src="<?php echo theme_url('js/jquery/jquery.js');?>"></script>
<script type="text/javascript" src="<?php echo theme_url('js/jquery/ui/jquery.ui.core.js');?>"></script>
<script type="text/javascript" src="<?php echo theme_url('js/jquery/ui/jquery.ui.widget.js');?>"></script>
<script type="text/javascript" src="<?php echo theme_url('js/jquery/ui/jquery.ui.tabs.js');?>"></script>

<script type="text/javascript" src="<?php echo theme_url('js/common.js');?>"></script>

<script type="text/javascript">
	$(document).ready(function(){

	});
</script>

</head>
<body>
	<div id="wrap">

		<div class="nav">
			<a href="<?php echo $this->session->get('back');?>" class="button">返回</a>
		</div>

		<div id="tabs">
			<ul>
				<li><a href="#tabs-1">添加商品</a></li>
			</ul>
			<div id="tabs-1">
				<form action="__SELF__" method="post">
					<table class="list">
						<tr>
							<td width="100">名称（<span class="required">*</span>）：</td>
							<td><input type="text" name="name" value="" class="input" /></td>
						</tr>
						<tr>
							<td>分类（<span class="required">*</span>）：</td>
							<td>
								<select name="category_id" class="select">
									<option value="0">请选择</option>
									<?php
										foreach ($category_list as $row)
										{
									?>
									<option value="<?php echo $row['id'];?>"><?php echo str_repeat('___', $row['level'] - 1).$row['name'];?></option>
									<?php
										}
									?>
								</select>
							</td>
						</tr>
						<tr>
							<td>标题：</td>
							<td><input type="text" name="title" value="" class="input w300" /></td>
						</tr>
						<tr>
							<td>关键词：</td>
							<td><input type="text" name="keywords" value="" class="input w500" /></td>
						</tr>
						<tr>
							<td valign="top">描述：</td>
							<td><textarea name="description" class="textarea w500 h100"></textarea></td>
						</tr>
						<tr>
							<td valign="top">内容：</td>
							<td><textarea name="content" class="textarea w500 h100"></textarea></td>
						</tr>
						<tr>
							<td colspan="2"><input type="submit" value="提交" class="button" /></td>
						</tr>
					</table>
				</form>
			</div>
		</div>
	</div>
</body>
</html>